﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Linq.Mapping;

namespace ArtOfNet.Framework.Data.Schema
{
    [Table(Name = "sys.objects")]
    public class Column : BaseSingle
    {
        [Column(Name = "object_id")]
        public int ParentID;
        [Column(Name = "name")]
        public string Name;
        [Column(Name = "column_id")]
        public int ID;
        [Column(Name = "user_type_id")]
        public int UserTypeID;
        [Column(Name = "max_length")]
        public int MaxLength;
        [Column(Name = "collation_name")]
        public string Collation;
        [Column(Name = "is_nullable")]
        public bool IsNullable;
        [Column(Name = "is_identity")]
        public bool IsIdentity;
        [Column(Name = "is_computed")]
        public bool IsComputed;
        [Column(Name = "is_replicated")]
        public bool IsReplicated;
    }
}

/// object_id,name,column_id,user_type_id, 
/// max_length,collation_name,is_nullable,
/// is_identity,is_computed,is_replicated 

